package com.svse.designPattern.interfacesegregationprinciple.impl;

import com.svse.designPattern.interfacesegregationprinciple.service.CountModule;
import com.svse.designPattern.interfacesegregationprinciple.service.InputModule;
import com.svse.designPattern.interfacesegregationprinciple.service.PrintModule;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/7/25 17:22
 */
public class StuScoreListImpl  implements InputModule,CountModule,PrintModule {


    private StuScoreListImpl(){}
    public static InputModule getInputModule()
    {
        return (InputModule)new StuScoreListImpl();
    }
    public static CountModule getCountModule()
    {
        return (CountModule)new StuScoreListImpl();
    }
    public static PrintModule getPrintModule()
    {
        return (PrintModule)new StuScoreListImpl();
    }

    @Override
    public void total() {
        System.out.println("统计模块的total()方法被调用！");
    }

    @Override
    public void Average() {
        System.out.println("统计模块的Average()方法被调用！");
    }

    @Override
    public void insert() {
        System.out.println("输入模块的insert()方法被调用！");
    }

    @Override
    public void delete() {
        System.out.println("输入模块的delete()方法被调用！");
    }

    @Override
    public void modify() {
        System.out.println("输入模块的modify()方法被调用！");
    }

    @Override
    public void printStuInfo() {
        System.out.println("打印模块的printStuInfo()方法被调用！");
    }

    @Override
    public void queryStuInfo() {
        System.out.println("打印模块的queryStuInfo()方法被调用！");
    }
}
